#app {
  .main-container {
    width: calc(100% - #{$sideBarWidth});
    // width: 100%;
    height: calc(100% - #{$hamburgerHeight} - 0.4375rem); // height: 100%;
    transition: margin-left 0.48s;
    position: relative;
  }

  .sidebar-container {
    transition: width 0.48s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    font-size: 0px;
    z-index: 99;
    overflow: hidden;
    flex-shrink: 0;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      //  color: rgb(19, 212, 19) !important;
      // fill: rgb(19, 212, 19) !important;
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    // 菜单栏选中样式修改
    .submenu-title-noDropdown,
    .el-submenu__title {
      // border-top: 1px solid #499eba;
      border-bottom: 0.0628rem solid $Menuborder;
      height: 50px !important;
      line-height: 50px !important;

      i {
        color: #fff !important;
      }

      // svg { fill: rgb(124, 151, 124) !important; }
      &:hover,
      &.is-active {
        background-color: $activeMenuBg !important;
        color: $activeMenuText !important;

        i {
          // color: aqua !important;
          color: $activeMenuText !important;
        }

        // svg { fill: rgb(17, 218, 17) !important; }
      }
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      border-bottom: 1px solid $subMenuborder;
      // border-image: linear-gradient(to right, #1d5466, white, #1d5466) 1 10;
      background-color: $subMenuBg !important;

      &:hover,
      &.is-active {
        background-color: $activeMenuBg !important;
        color: $activeMenuText !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: $sideBarMinWidth !important;
    }

    .main-container {
      margin-left: 0;
      // width: 100%;
      width: calc(100% - #{$sideBarMinWidth});
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
          // fill: rgb(19, 212, 19) !important;
        }

        .sub-el-icon,
        .myself-icons {
          margin-left: 19px;
        }
      }
    }

    .headertop {
      // position: relative;


      .el-submenu {
        // overflow: hidden;

        &>.el-submenu__title {
          padding: 0 40px 0px 10px !important;

          .svg-icon {
            margin-left: 20px;
            // fill: rgb(19, 212, 19) !important;
          }

          .sub-el-icon {
            margin-left: 19px;
          }

          .el-submenu__icon-arrow {
            display: block;
          }
        }
      }
    }

    .el-submenu {
      // overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
          // fill: rgb(19, 212, 19) !important;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      // color: rgb(19, 212, 19) !important;
      // fill: rgb(19, 212, 19) !important;
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      background-color: $activeMenuBg !important;
      color: $activeMenuText !important;
    }

    &.is-active {
      background-color: $activeMenuBg !important;
      color: $activeMenuText !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
